" Load the plugins
loadplugins '\.(js|penta)$'
group user

set titlestring="Pentadactyl"

" Colorscheme
colorscheme molokai

" Faster navigation
map -count -modes=n j -builtin <count>3j
map -count -modes=n k -builtin <count>3k

" Use duckduckgo to search by default
map -builtin -modes=n s :open duckduckgo !g
map -builtin -modes=n S :tabopen duckduckgo !g

" Use livestreamer to view video streams
map -builtin -modes=n v :livestreamer<CR>

" I never use marks, but always use quickmarks
nmap -builtin "'" go
nmap -builtin '"' gn

" Highlight all search matches, not just the first
set hlfind

" Configure the command line and the look
set maxitems=20
set showtabline=never
set showstatuslinks=command
set guioptions=Cs

" Set the default motor search
set defsearch=duckduckgo

map -b <F9> :js document.getElementById('nav-bar').collapsed ^= 1;<CR>

command! private-tab -nargs=+ -description "Open Private Tab" -javascript <<EOF
  privateTab.readyToOpenTab(true);
  gBrowser.addTab("about:blank");
  dactyl.execute(":tablast");
  dactyl.execute(":open " + args);
  privateTab.stopToOpenTabs();
EOF
